package br.com.naybee.framework.client.componente.gwt.web;

import com.google.gwt.dom.client.Element;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.Widget;

public class Section extends ComplexPanel {

	private Element createElement;

	public Section() {
		createElement = DOM.createElement("section");
		setElement(createElement);
	}

	public void add(Widget w) {
		Element element = this.createElement;
		this.add(w, element);
	}
	
	public void setClassName(String classe) {
		this.createElement.setClassName(classe);
	}

	public String getClassName() {
		return this.createElement.getClassName();
	}


}
